<template>
  <view class="options_wrap" :style="{ height: scrollViewHeight }">
    <view class="options_title"> 更多选项 </view>
    <scroll-view
      class="options_btn"
      scroll-y
      enable-flex
      refresher-enabled
      refresher-default-style="none"
    >
      <view class="options_btn_item">
        <text class="options_btn_left">个人认证</text>
        <text class="options_btn_right">&gt;</text>
      </view>

      <view class="options_btn_item">
        <text class="options_btn_left">修改密码</text>
        <text class="options_btn_right">&gt;</text>
      </view>

      <view class="options_btn_item">
        <text class="options_btn_left">我的帖子</text>
        <text class="options_btn_right">&gt;</text>
      </view>

      <view class="options_btn_item">
        <text class="options_btn_left">更新版本</text>
        <text class="options_btn_right">&gt;</text>
      </view>

      <view class="options_btn_item">
        <text class="options_btn_left">关于我们</text>
        <text class="options_btn_right">&gt;</text>
      </view>
    </scroll-view>
  </view>
</template>

<script>
export default {
  mounted() {
    this.getSceenHeight()
  },
  data() {
    return {
      screenHeight: '',
      triggered: false,
    }
  },
  methods: {
    async getSceenHeight() {
      this.screenHeight = await uni.getSystemInfoSync().windowHeight
    },
  },
  computed: {
    scrollViewHeight() {
      return this.screenHeight * 1 - 400 + 'px'
    },
  },
}
</script>

<style lang="scss" scoped>
.options_wrap {
  position: relative;
  top: -20rpx;
  width: 100%;
  background: #fff;
  padding: 50rpx;
  border-top-left-radius: 60rpx;
  border-top-right-radius: 60rpx;
  overflow: hidden;
  .options_title {
    font-size: 30rpx;
    letter-spacing: 2rpx;
    color: #666;
  }

  .options_btn {
    padding: 30rpx 0 0 0;
    height: 560rpx;
    .options_btn_item {
      width: 100%;
      height: 100rpx;
      border-radius: 40rpx;
      background: #f4f7ff;
      display: flex;
      align-items: center;
      padding: 0 40rpx;
      margin-top: 30rpx;
      &:first-child {
        margin-top: 0;
      }
      .options_btn_left {
        font-size: 30rpx;
        color: #666;
      }
      .options_btn_right {
        flex: 1;
        text-align: right;
        font-size: 50rpx;
        color: #666;
      }
    }
  }
}
</style>